import matplotlib.pyplot as plt

x = [5,4,3,4,5,6,1,-5,3,-2,-5,4,5,3,-2,-1,9]
y = [-2,-3,2,3,4,6,0,2,3,4,5-4,3,-7,-2,1,3,12]
fig = plt.figure(figsize=(4, 4))
ax = fig.add_subplot(221)

#隐藏坐标轴上边和右边
ax.spines['top'].set_color('none')
ax.spines['right'].set_color('none')

#移动俩个坐标轴
ax.xaxis.set_ticks_position('bottom')
ax.spines['bottom'].set_position('center')
ax.yaxis.set_ticks_position('left')
ax.spines['left'].set_position('center')

ax.scatter(x,y,s=10)
ax2 = fig.add_subplot(222)
ax2.scatter(x,y,s=20)

ax3 = fig.add_subplot(223)
ax3.scatter(x,y,s=30)
plt.title("aaa")

ax4 = fig.add_subplot(224)
ax4.scatter(x,y,s=40)
plt.show()